home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / Software / Vyzkuste / xsetup / _SETUP.2 / Group3 / XQ OEM Info Model.xpl < prev    next >
Text File  |  1999-08-09  |  2KB  |  62 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="1"
  3. "COUNT"="2"
  4. "UIPATH"="Appearance\OEM Information"
  5. "NAME"="General Information"
  6. "VERSION"="1.41"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="OEM Name"
  9. "TEXT 2"="Computer Model"
  10. "DESCRIPTION 1"="To see these values, select "Start" | "Settings" | "Control Panel" and click "System"."
  11. "DESCRIPTION 2"="You can create your own computer ;-)."
  12. "AUTHOR"="Xteq Systems"
  13. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  14. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  15. "COMMENT 2"=" "
  16. "COMMENT 3"="Thanks to CptSiskoX [CptSiskoX@FlashMail.Com] for the Windows 9x part!"
  17.  
  18.  
  19. 'Declaration of some constants
  20. sT="General"
  21. sI="OEMINFO.INI"
  22.  
  23. 'Win 9x -> \windows; Win NT -> \windows\system32
  24. If GetWinVer=2 then 
  25.    sI=GetWinSysDir & sI 'NT
  26. else
  27.    sI=GetWinDir & sI '9x
  28. end if
  29.  
  30.  
  31. 'Called when the Plugin is started
  32. Sub Plugin_Initialize
  33.  s=IniReadValue(si,st,"Manufacturer")
  34.  
  35.  'Cheating OK... but how cares??!?!?!
  36.  if IsEmpty(s) then
  37.   SetUIElement 1,"Xteq Systems"
  38.  else 
  39.   SetUIElement 1,s
  40.  end if
  41.  
  42.  s=IniReadValue(si,st,"Model")
  43.  SetUIElement 2,s
  44. End Sub
  45.  
  46. 'Called when the Plugin should validate the Data the user has entered
  47. Sub Plugin_CheckData(ElementIndex)
  48. End Sub
  49.  
  50. 'Called when the Plugin should apply the changes
  51. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  52.  s=GetUIElement(1)
  53.  Call IniWriteValue(si,st,"Manufacturer",s)
  54.  
  55.  s=GetUIElement(2)
  56.  Call IniWriteValue(si,st,"Model",s)
  57. End Sub
  58.  
  59. 'Called when the Plugin is about to be removed from memory
  60. Sub Plugin_Terminate
  61. End Sub
  62.